<?php

/**
 * description
 */
class BackendApplicationForm extends ApplicationForm
{
  /**
   * description
   */
  public function configure()
  {
    parent::configure();

    unset($this['is_passed'],$this['password'],$this['password2']);

    $this->widgetSchema['picture'] = new sfWidgetFormInputFileEditable(array(
      'file_src' => '/uploads/application/' . $this->getObject()->getPicture(),
      'is_image' => true,
      'edit_mode' => true,
      'with_delete' => false
    ));

    $this->widgetSchema['picturelife'] = new sfWidgetFormInputFileEditable(array(
      'file_src' => '/uploads/application/picturelife/' . $this->getObject()->getPicturelife(),
      'is_image' => true,
      'edit_mode' => true,
      'with_delete' => false
    ));

    $this->validatorSchema['picture']->setOption('required', false);
    $this->validatorSchema['picturelife']->setOption('required', false);
	



  }
}
